<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>峰峰物流网后台管理系统</title>
<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen" title="default" />
<!--[if IE]>
<link rel="stylesheet" media="all" type="text/css" href="css/pro_dropline_ie.css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="../js/easyui/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="../js/easyui/themes/icon.css" />

<!--  jquery core -->
<script src="js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/easyui/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>

<!--  checkbox styling script -->
<script src="js/jquery/ui.core.js" type="text/javascript"></script>
<script src="js/jquery/ui.checkbox.js" type="text/javascript"></script>
<script src="js/jquery/jquery.bind.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
	$('input').checkBox();
	$('#toggle-all').click(function(){
 	$('#toggle-all').toggleClass('toggle-checked');
	$('#mainform input[type=checkbox]').checkBox('toggle');
	return false;
	});
});
</script>  

<![if !IE 7]>

<!--  styled select box script version 1 -->
<script src="js/jquery/jquery.selectbox-0.5.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect').selectbox({ inputClass: "selectbox_styled" });
	
	$(function() {
		$('#center_data')
				.datagrid(
						{
							nowrap : false,
							striped : true,
							collapsible : true,
							url : 'boardAction!queryBoardList',
							sortName : 'time',
							sortOrder : 'desc',
							remoteSort : true,
							idField : 'id',
							queryParams : {}, //查询条件
							columns : [ [
									{	field : 'title',title : '标题',width : 200},
									{	field : 'context',title : '内容',width : 400},
									{	field : 'pic',title : '图片',width : 240,rowspan : 2,
										formatter : function(value, rowData,
											rowIndex) {
										return "<img with='100' height='100' src='../"+value+"'>"
												 
									}},
									{	field : 'isshow',title : '是否显示',width : 70,
									formatter: function (value, rec) { return (value==1 ? "显示" : "不显示"); }
									}
									
									  ] ],
							pagination : true,
							rownumbers : true,
							toolbar : [ {
								id : 'btnadd',
								text : '添加',
								iconCls : 'icon-add',
								handler : function() {
									add();
								}
							},{
								id : 'btndelete',
								text : '删除',
								iconCls : 'icon-remove',
								handler : function() {
									remove();
								}
							},{
								id : 'btnedit',
								text : '编辑',
								iconCls : 'icon-edit',
								handler : function() {
									edit();
								}
							},
							{
								id : 'btnsign',
								text : '显示',
								iconCls : 'icon-no',
								handler : function() {
									show();
								}
							}
							]
						});
						var p = $('#test').datagrid('getPager');
						if (p) {
							$(p).pagination( {
								onBeforeRefresh : function() {
									alert('before refresh');
								}
							});
						}
		});
		
		function add(){
			window.location="addboard.html";
		}
		function remove() {
			var rows = $('#center_data').datagrid('getSelections');
			if (rows.length == 0) {
				$.messager.alert('提示', '请选择行', 'information');
				return false;
			}
			if (rows.length > 1) {
				$.messager.alert('提示', '请选择一行', 'information');
				return false;
			}
			if(confirm("您确定要删除"+rows.length+"记录吗？"))
			{
				var array = new Array();
				for(var i=0;i<rows.length;i++)
				{
					array.push(rows[i].id);
				}
				var param = array.toString();
				$.ajax( {
					url : 'boardAction!deleteBoard',
					type : "post",
					data : {
						"id" :param ,
						success : function(returnedData, status) {
							$.messager.alert('提示', '您操作成功', 'information', function() {
								$('#center_data').datagrid('clearSelections');
								$('#center_data').datagrid("reload");
							});
						}
					}
				});
			}
		}
		
		function edit() {
			var rows = $('#center_data').datagrid('getSelections');
			if (rows.length == 0) {
				$.messager.alert('提示', '请选择行', 'information');
				return false;
			}
			if (rows.length > 1) {
				$.messager.alert('提示', '请选择一行', 'information');
				return false;
			}
			window.location="editboard.html?id="+rows[0].id;
		}
		
		function show(){
			var rows = $('#center_data').datagrid('getSelections');
			if (rows.length == 0) {
				$.messager.alert('提示', '请选择行', 'information');
				return false;
			}
			if (rows.length > 1) {
				$.messager.alert('提示', '请选择一行', 'information');
				return false;
			}
			$.ajax( {
			url : 'boardAction!showBoard.action',
			type : "post",
			data : {
				"id" : rows[0].id,
				success : function(returnedData, status) {
					$.messager.alert('提示', '您操作成功', 'information', function() {
						$('#center_data').datagrid('clearSelections');
						$('#center_data').datagrid("reload");
					});
				}
			}
		});
		}
		
});
</script>
 

<![endif]>

<!--  styled select box script version 2 --> 
<script src="js/jquery/jquery.selectbox-0.5_style_2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect_form_1').selectbox({ inputClass: "styledselect_form_1" });
	$('.styledselect_form_2').selectbox({ inputClass: "styledselect_form_2" });
});
</script>

<!--  styled select box script version 3 --> 
<script src="js/jquery/jquery.selectbox-0.5_style_2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect_pages').selectbox({ inputClass: "styledselect_pages" });
});
</script>

<!--  styled file upload script --> 
<script src="js/jquery/jquery.filestyle.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
  $(function() {
      $("input.file_1").filestyle({ 
          image: "images/forms/choose-file.gif",
          imageheight : 21,
          imagewidth : 78,
          width : 310
      });
  });
</script>

<!-- Custom jquery scripts -->
<script src="js/jquery/custom_jquery.js" type="text/javascript"></script>
 
<!-- Tooltips -->
<script src="js/jquery/jquery.tooltip.js" type="text/javascript"></script>
<script src="js/jquery/jquery.dimensions.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$('a.info-tooltip ').tooltip({
		track: true,
		delay: 0,
		fixPNG: true, 
		showURL: false,
		showBody: " - ",
		top: -35,
		left: 5
	});
});
</script> 


<!--  date picker script -->
<link rel="stylesheet" href="css/datePicker.css" type="text/css" />
<script src="js/jquery/date.js" type="text/javascript"></script>
<script src="js/jquery/jquery.datePicker.js" type="text/javascript"></script>


<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
<script src="js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(document).pngFix( );
});
</script>
</head>
<body> 
<!-- Start: page-top-outer -->
<div id="page-top-outer">    

<!-- Start: page-top -->
<div id="page-top">

	<!-- start logo -->
	<div id="logo">
	<a href=""><img src="images/shared/logo.png" width="156" height="40" alt="" /></a>
	</div>
	<!-- end logo -->
	
 	<div class="clear"></div>

</div>
<!-- End: page-top -->

</div>
<!-- End: page-top-outer -->
	
<div class="clear">&nbsp;</div>
 
<!--  start nav-outer-repeat................................................................................................. START -->
<div class="nav-outer-repeat"> 
<!--  start nav-outer -->
<div class="nav-outer"> 

		<!-- start nav-right -->
		<div id="nav-right">
		
			<div class="nav-divider">&nbsp;</div>
			<div class="showhide-account"><img src="images/shared/nav/nav_myaccount.gif" width="93" height="14" alt="" /></div>
			<div class="nav-divider">&nbsp;</div>
			<a href="" id="logout"><img src="images/shared/nav/nav_logout.gif" width="64" height="14" alt="" /></a>
			<div class="clear">&nbsp;</div>
		
			<!--  start account-content -->	
			<div class="account-content">
			<div class="account-drop-inner">
				<a href="" id="acc-settings">修改密码</a>
				<div class="clear">&nbsp;</div>	
			</div>
			</div>
			<!--  end account-content -->
		
		</div>
		<!-- end nav-right -->


		<!--  start nav -->
		<div class="nav">
		<div class="table">
		

		<ul class="current"><li><a href="#nogo"><b>系统管理</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		<div class="select_sub show">
			<ul class="sub">
				<li class="sub_show"><a href="#nogo">公告栏维护</a></li>
				<li><a href="#nogo">留言板维护</a></li>
			</ul>
		</div>
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
		                    
		<ul class="select"><li><a href="#nogo"><b>订单管理</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		<div class="select_sub">
			<ul class="sub">
				<li><a href="#nogo">订单信息维护</a></li>
				<li><a href="#nogo">订单生成</a></li>
			</ul>
		</div>
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
		
		<ul class="select"><li><a href="#nogo"><b>信息管理</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		<div class="select_sub">
			<ul class="sub">
				<li><a href="#nogo">车辆信息维护</a></li>
				<li><a href="#nogo">顾客信息维护</a></li>
				<li><a href="#nogo">司机信息维护</a></li>
			</ul>
		</div>
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
		
		<ul class="select"><li><a href="#nogo"><b>主页管理</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		<div class="select_sub">
			<ul class="sub">
				<li><a href="#nogo">欢迎语维护</a></li>
				<li><a href="#nogo">企业信息维护</a></li>
			</ul>
		</div>
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		
		
		<div class="clear"></div>
		</div>
		<div class="clear"></div>
		</div>
		<!--  start nav -->

</div>
</div>
  <div class="clear"></div>
<div id="content">
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
			<!--  start table-content  -->
			<div id="table-content">
			<table id="center_data"></table>
			</div><div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
<!-- <div id="footer-pad">&nbsp;</div> -->
	<!--  start footer-left -->
	<div id="footer-left">
	 Copyright for &copy; fengfeng.com All rights reserved.</div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->

</body>
</html>